package com.qn.common.base.model;

/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
public enum ResponseCode {
    /**
     * 成功
     */
    SUCCESS(0),
    /**
     * 失败
     */
    ERROR(500),
    /**
     * 鉴权异常
     */
    UNAUTHORIZED(401),
    /**
     * 资源不存在
     */
    NOT_FOUND(404);

    private final int code;

    ResponseCode(int code) {
        this.code = code;
    }

    public int code() {
        return code;
    }
}
